<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Thymeleaf 表达式功能对象</title>
</head>
<body>
<!--
    内置功能对象前都需要加#号，内置对象一般都以 s 结尾
-->
<span th:text="${time}"></span><br/><br/>
<span th:text="${#dates.format(time,'yy-MM-dd HH:mm:ss')}"></span>
</body>
</html>